package nowCoder;

import java.util.Scanner;

/**
 * @Auther: zzx
 * @Date: 2024.03.24/3/7
 */
public class HJ106 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String x = sc.nextLine();
        for (int i = x.length() - 1; i >= 0; i--) {
            System.out.print(x.charAt(i));
        }
    }
}
